<template>
	<div class="home">
		<div class="header">
			<van-tabbar route :fixed="false">
				<van-tabbar-item to="/">首页</van-tabbar-item>
				<van-tabbar-item to="/car">选车</van-tabbar-item>
			</van-tabbar>
		</div>
		<div class="main">
			<router-view></router-view>
		</div>
	</div>
</template>


<style lang="scss">
.home {
	display: flex;
	flex-direction: column;
	width: 100vw;
	height: 100vh;
	.main {
		flex: 1;
		height: 100%;
		overflow-y: scroll;
	}
}

a {
	color: #000;
	text-decoration: none;
}

.router-link-exact-active {
	color: red;
}
</style>